package db.dao;

/**
 * CourClassId entity. @author MyEclipse Persistence Tools
 */

public class CourClassId implements java.io.Serializable {

	// Fields

	private String teaid;
	private String courseid;

	// Constructors

	/** default constructor */
	public CourClassId() {
	}

	/** full constructor */
	public CourClassId(String teaid, String courseid) {
		this.teaid = teaid;
		this.courseid = courseid;
	}

	// Property accessors

	public String getTeaid() {
		return this.teaid;
	}

	public void setTeaid(String teaid) {
		this.teaid = teaid;
	}

	public String getCourseid() {
		return this.courseid;
	}

	public void setCourseid(String courseid) {
		this.courseid = courseid;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof CourClassId))
			return false;
		CourClassId castOther = (CourClassId) other;

		return ((this.getTeaid() == castOther.getTeaid()) || (this.getTeaid() != null && castOther.getTeaid() != null
				&& this.getTeaid().equals(castOther.getTeaid())))
				&& ((this.getCourseid() == castOther.getCourseid()) || (this.getCourseid() != null
						&& castOther.getCourseid() != null && this.getCourseid().equals(castOther.getCourseid())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result + (getTeaid() == null ? 0 : this.getTeaid().hashCode());
		result = 37 * result + (getCourseid() == null ? 0 : this.getCourseid().hashCode());
		return result;
	}

}